<% for period in @periods -%><% unless period.blank? %><period value="<%= @range.shift %>" sum="<%= period %>" />
	<% end -%><% end -%>